﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Aribaccio
{
    /// <summary>
    /// XML数据项
    /// </summary>
    [XmlTypeAttribute(AnonymousType = true)]
    public class ReturnDataItem
    {
        /// <summary>
        /// 属性字段名称
        /// </summary>
        [XmlAttribute("FieldName")]
        public string FieldName { get; set; }

        /// <summary>
        /// 属性字段值
        /// </summary>
        [XmlAttribute("FieldValue")]
        public string FieldValue { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ReturnDataItem()
        {
            this.FieldName = string.Empty;
            this.FieldValue = string.Empty;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="argFieldName">属性名称</param>
        /// <param name="argFieldValue">属性值</param>
        public ReturnDataItem(string argFieldName, string argFieldValue)
        {
            this.FieldName = argFieldName;
            this.FieldValue = argFieldValue;
        }
    }
}
